﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace MyEmulators2
{
    public class ScraperGame
    {
        public string Title { get; set; }
        public string Company { get; set; }
        public string Year { get; set; }
        public string Grade { get; set; }
        public string Description { get; set; }
        public string Genre { get; set; }
        public Bitmap BoxFront { get; set; }
        public Bitmap BoxBack { get; set; }
        public Bitmap TitleScreen { get; set; }
        public Bitmap InGame { get; set; }

        public ScraperGame(string title, string company, string year, string grade, string description, string genre)
        {

            Title = checkString(title);
            Company = checkString(company);
            Year = checkString(year);
            Grade = checkString(grade);
            Description = checkString(description);
            Genre = checkString(genre);
            BoxFront = null;
            BoxBack = null;
            TitleScreen = null;
            InGame = null;
            BoxFrontUrl = null;
            BoxBackUrl = null;
            TitleScreenUrl = null;
            InGameUrl = null;
        }


        public string BoxFrontUrl { get; set; }

        public string BoxBackUrl { get; set; }

        public string TitleScreenUrl { get; set; }

        public string InGameUrl { get; set; }

        string checkString(string s)
        {
            return string.IsNullOrEmpty(s) ? "" : s;
        }
    }
}
